package StudyCode.summary.mydatetime;

import java.time.ZoneOffset;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class CreateZoneOffset {
	public static void main(String[] args) {
		ZoneOffset zos1 = ZoneOffset.ofHours(-6);
		ZoneOffset zos2 = ZoneOffset.ofHoursMinutes(6, 30);
		ZoneOffset zos3 = ZoneOffset.ofHoursMinutesSeconds(8, 30, 45);
		System.out.println(zos1);
		System.out.println(zos2);
		System.out.println(zos3);

		ZoneOffset zos4 = ZoneOffset.of("+05:00");
		ZoneOffset zos5 = ZoneOffset.of("Z");
		System.out.println(zos4);
		System.out.println(zos5);

		System.out.println("ZoneOffset.UTC: " + ZoneOffset.UTC);
		System.out.println("ZoneOffset.MIN: " + ZoneOffset.MIN);
		System.out.println("ZoneOffset.MAX: " + ZoneOffset.MAX);
	}
}
